// JavaScript Document
function m_menu_show(){
	var vl=$("#menu-tabs").css("display");
	if(vl=='none'){
		$('#menu-tabs').css('display','block');
	}else{
		$('#menu-tabs').css('display','none');
	}
}


$(document).ready(function(){

$('#menu-search-box2').select2({ 
    		width: '100%',
    		minimumInputLength: 3,
    			ajax: { 
    			url: "index.php?module=ajax&act=manga&opt=search&manga_search_home", 
    			dataType: 'json', 
    					data: function (term, page){ 
    						return {q: term }; 
    						}, 
    						results: function (data, page) {
								
    							return { results: data }; 
								
    						}
    			}
    	
    	}); 
		  $("#menu-search-box2").on("change", function(e) {   
						//Feed chuong
					location.href=e.val;	
					
       
        })
		
}) //End jquery ready document